import React, { Component } from 'react'
import { SearchBar } from 'antd-mobile'
import TabBar from './components/TabBar'

export default class index extends Component {
  onSearch = (val) => {
    console.log(val)
  }
  render() {
    return (
      <div>
        <div>
          <SearchBar onChange={this.onSearch} placeholder='请输入内容' />
        </div>
        <div className=''>{this.props.children}</div>
        <div>
          <TabBar></TabBar>
        </div>
      </div>
    )
  }
}
